import { Tools } from 'weaver-mobile';

// 获取是否需要导航
export const getHasNavbar = (params = {}) => {
  const url = '/api/mobile/portal/navbar/getHasNavbar';
  const method = 'GET';
  params.__random__ = Date.now();
  return Tools.callApi({ url, method, params, type: 'json' });
};

// 获取导航菜单
export const getNavbarMenus = (params = {}) => {
  const url = '/api/mobile/portal/elements/portalMenuJson';
  const method = 'GET';
  params.__random__ = Date.now();
  return Tools.callApi({ url, method, params, type: 'json' });
};
